<?php
/**
 * Base_App
 *
 * LICENSE
 *
 * This source file is subject to the new CC-GNU LGPL
 * It is available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/LGPL/2.1/
 *
 * @category   Base_App
 * @copyright  Copyright (c) 2009 Alexander fanatique* Thomas (me@alexander-thomas.net)
 * @license    http://creativecommons.org/licenses/LGPL/2.1/
 */
 class Base_App_Validation_Exception extends Zend_Exception{
 	private $_errors = array();
 	
 	function __construct(array $errors) {
		$this->_errors = $errors;
	}
	
	/**
	 * Getter for the errors array
	 * @return array $errors
	 */
	public function getErrors() {
		return $this->_errors;
	}
	
	/**
	 * @return int Nummber of errors in the errors array.
	 */
	public function numberOfErrors() {
		return count($this->_errors);
	}
 }
?>
